<div class="main row">
    <div class="catego-title">
        <a href="<?php echo $base_url; ?>thu-tuc-hai-quan"><span>THỦ TỤC HẢI QUAN</span></a>
    </div>

    <section class="fck col-md-12">
        <h1><?php echo $page_title; ?></h1>
        <div class="tool-bar">
            <span class="date">
                <?php
                //show date time Tieng Viet
                $str_search = array(
                    "Mon",
                    "Tue",
                    "Wed",
                    "Thu",
                    "Fri",
                    "Sat",
                    "Sun"
                );
                $str_replace = array(
                    "Th&#7913; hai",
                    "Th&#7913; ba",
                    "Th&#7913; t&#432;",
                    "Th&#7913; n&#259;m",
                    "Th&#7913; s&#225;u",
                    "Th&#7913; b&#7843;y",
                    "Ch&#7911; nh&#7853;t"
                );
                $timenow = gmdate("D, d/m/Y | H:i", time() + 7 * 3600);
                $timenow = str_replace($str_search, $str_replace, $timenow);
                echo $timenow;
                ?>
            </span>
            <ul class="social-bar">
                <li>
                    <a target="_blank" class="wi-icon wi-icon-face" href="https://www.facebook.com/sharer.php?u=<?php echo $current_url; ?>" title="facebook"></a>
                </li>
                <li>
                    <a class="wi-icon wi-icon-tw" href="https://twitter.com/share" title="tw"></a>
                </li>
                <li>
                    <a target="_blank" class="wi-icon wi-icon-google" href="https://plus.google.com/share?url=<?php echo $current_url; ?>" title="google plus"></a>
                </li>
                <li>
                    <a target="_blank" class="wi-icon wi-icon-mail" href="mailto:?subject=Xem%20n%E1%BB%99i%20dung%20b%C3%A0i%20vi%E1%BA%BFt%20:<?php echo $current_url; ?>" title="mail"></a>
                </li>
            </ul>
        </div>
    </section>

    <section class="fck col-md-12">
        <div class="fck">
            <p>
                <?php
                $customs_content = preg_replace('#<p.*?>(.*?)</p>#i', '<p>\1</p>', $customs_content);
                $customs_content = preg_replace('#<span.*?>(.*?)</span>#i', '<span>\1</span>', $customs_content);
                $customs_content = preg_replace('#<ol.*?>(.*?)</ol>#i', '<ol>\1</ol>', $customs_content);
                $customs_content = preg_replace('#<ul.*?>(.*?)</ul>#i', '<ul>\1</ul>', $customs_content);
                $customs_content = preg_replace('#<li.*?>(.*?)</li>#i', '<li>\1</li>', $customs_content);
                echo $customs_content;
                ?>
            </p>
        </div>
        <div class="hlight">
            <span class="author">
                <?php 
                if ($customs_manager != NULL && $customs_manager != '')
                    echo 'Cơ quan thực hiện: ' . $customs_manager . '<br/>';
                if ($customs_dv != NULL && $customs_dv != '')
                    echo 'Mức DV: ' . $customs_dv;
                ?>
            </span>
        </div>        
    </section>    
</div>